﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SistemaInventarioMVC.Models.Entidades
{
    [Table("CabeceraSalidaAlmacen")]
    public class CabeceraSalidaAlmacen
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 SalidaAlmacenID { get; set; }

        [Column]
        [Display(Name="Fecha de Salida")]
        public DateTime FechaSalida { get; set; }

        [Column]
        [Display(Name="Detalle")]
        public String Detalle { get; set; }

        [Column]
        [StringLength(40)]
        [Display(Name="Digitado por")]
        public String DigitadoPor { get; set; }

        [Column]
        [StringLength(40)]
        [Display(Name="Revisado por")]
        public String RevisadoPor { get; set; }

        [Column]
        [StringLength(40)]
        [Display(Name="Aprobado por")]
        public String AporbadoPor { get; set; }

        [Column]
        public Int32 RazonSalidaID { get; set; }

        //Propiedades de navegacion
        [ForeignKey("RazonSalidaID")]
        public virtual RazonSalida RazonSalida { get; set; }

        public virtual ICollection<DetalleSalidaAlmancen> DetalleSalidaAlmacen { get; set; }

    }
}